package com.qidian.mespro.mapper;

import com.qidianit.mes.pojo.pro.Process;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ Description:
 * @ Author: DuYaTao
 * @ Date: 2025/9/17 - 16:56
 */

public interface ProcessMapper {

    /**
     * 分页查询工序数据
     * @param process
     * @return
     */
    List<Process> selectAllProcess(Process process);

    int insertProcess(Process process);

    Process selectProcessByCode(String code);

    int updateProcess(Process process);

    int deleteById(Long id);

    int batchDeleteByIds(@Param("ids") Long [] ids);

    Process selectProcessById(Long processId);

    List<Process> selectProcessByWorkflowId(Long id);
}
